Video processing apparatus systems and methods

ABSTRACT

A display interface device 20 is provided which includes inputs for receiving video data words, the video data words including control codes for controlling the output format of a display, and a video clock signal received from an associated video controller. A first-in/first-out memory 30 is also provided with a video data word clocked into memory 30 by the first clock and clocked out of memory 30 by a second clock generated from a clock received from an associated graphics controller.

This is a divisional of application Ser. No. 08/099,194 filed Jul. 29,1993, now abandoned.

TECHNICAL FIELD OF THE INVENTION

The present invention relates in general to video processing and inparticular to video processing apparatus, systems and methods.

CROSS-REFERENCE TO RELATED APPLICATIONS

The following copending and coassigned United States patent applicationscontain related material and are incorporated herein by reference:

U.S. patent application Ser. No. 08/099,083 entitled "System And MethodFor Processing Multiple Received Signal Sources," filed concurrentlyherewith;

U.S. patent application Ser. No. 08/099,716 entitled "System And MethodFor Displaying Multiple Data Screens To A Single Display Device," filedconcurrently herewith;

U.S. patent application Ser. No. 08/099,844 entitled "Apparatus,Systems, And Methods For Displaying A Cursor On A Display Screen," filedconcurrently herewith;

U.S. patent application Ser. No. 08/099,223 entitled "Method And SystemFor Attaching Dynamic Control Codes To Received Real-Time Data Streams,"filed concurrently herewith;

U.S. patent application Ser. No. 08/098,846 entitled "A System AndMethod For The Mixing Of Graphics And Video Signals," filed concurrentlyherewith;

U.S. patent application Ser. No. 08/099,835 entitled "Method And SystemFor Achieving Full Monotonic Signal Conversion," filed concurrentlyherewith;

U.S. patent application Ser. No. 08/099,158 entitled "A VoltageReference And Current Source For Video DAC," filed concurrentlyherewith; and

U.S. patent application Ser. No. 08/098,840 entitled "Method and Systemfor Generating Dynamic Zoom Codes," filed concurrently herewith.

BACKGROUND OF THE INVENTION

Computer users continue to demand increased performance from thecomputer systems being made available in the marketplace. Of particularinterest have been computer systems with improved display subsystemswhich provide, among other things, color images, improved imagedefinition, and windowing. Such improvements in display technology notonly make the display screens more aesthetically pleasing to the userbut also generally make the system easier to use, both importantmarketing considerations.

Recent development efforts in display technology have been directed atproviding display systems which manage and mix both graphics data andvideo data in a windowing environment. In addition to controlling thecontent of various sections (windows) of the display screens, thesedisplay systems must also establish compatibility between the displaydevice and the graphics and video data sources. In the case of graphicsdata, the display control circuitry must be capable of driving a givendisplay from data received from various sources (for example, VGA, CGA,VRAM) as well as in varying formats (for example, varying numbers ofbits per pixel and/or varying numbers of bits per each color word in apixel). Similarly, in the case of video data, the display controlcircuitry must be capable of handling input data in a variety offormats, such as RGB and YUV, and of varying the numbers of bits perpixel and/or bits per color. All these considerations must be made inview of the ever increasing data transfer speed.

The display interface devices (DACs), which in the past typically linkedonly the graphics and/or video sources to the system display, inparticular face significant demands with the inclusion of video. In thecase of video, these interface devices must be capable of receiving thedata in varying formats, converting that data as necessary into adigital color data format compatible with the display, and finallyconverting the digital color data into equivalent analog signals for theactual driving of the display device. Not only must the displayinterface device provide all these processing features while operatingat the demanded high speeds, but also must account for typicaldifferences between the clocking of video data from the video processorto the video frame buffer and the clocking of data to the display unit(the clocking of the display unit is typically controlled by the CRTcontroller in the graphics controller). Specifically, the video sourcegenerates video data using a first time base (clock) while data istransferred to the display using a second time base (clock). Unless thisdifference in timing is accounted for, in view of all the otherconsiderations, it is difficult to efficiently generate the desiredimages on the display screen.

The use of first-in/first-out memories (FIFOs) to interface the transferof video and/or graphics data between processing devices operating ondifferent time bases (clocks) is known in the art. These uses of FIFOshave not however addressed the problems associated with inputingdifferent data and/or control words from different sources, such as aprocessor and a memory, using a first clock and output the receiveddata/control words with a second clock.

Thus the need has arisen for an improved digital display interfacedevice which provides high speed video processing, especially in a mixedgraphics/video display environment.

SUMMARY OF THE INVENTION

According to one embodiment of the present invention, a displayinterface device is provided which includes inputs for receiving videodata words and control codes and a first clock signal generated by anassociated video processing device. The interface device also includes afirst-in/first-out memory, a video data word clocked into the memory bythe first clock and clocked out of the memory by a second clock derivedfrom a clock generated by an associated graphics controller.

According to a second embodiment employing the principles of the presentinvention, a device is provided for interfacing a video data source witha display, the video data source including a video processor and a videomemory. A memory is provided which is operable to store video data wordsreceived from the video data, a write of one of the video data wordsinto the memory clocked by a clock signal received from the videoprocessor. Further, video processing circuitry is provided operable toprocess a given video data word received from the memory and providesignals for driving the display and response, the read of the video dataword out of the memory clocked by a second clock signal.

According to a third embodiment according to the principles of thepresent invention, video data processing circuitry is provided whichincludes a memory for storing video data words, the input of the videodata words synchronized to a first time base and the output of the videodata words synchronized with a second time base. A decoder is providedwhich is operable to receive ones of the video data words output fromthe memory in a YUV format and output RGB color data words definingselected display pixels in response. A scaler is also provided which isoperable to receive the RGB words output from the decoder and provide inresponse RGB data words defining other display pixels.

According to an additional embodiment embodying the principles of thepresent invention, a device is provided for interfacing a video datasource with a display, the display operable to display images as fieldsof pixels. Input circuitry is included which is operable to receive datawords defining a plurality of selected pixels in the field, the selectedpixels disposed along an axis of the field and spaced apart by otherpixels of the field. A scaler is also included for selectively providingbilinear interpolation additional data words defining the other pixelsin response to the received video data words.

Apparatus systems and methods embodying the principles of the presentinvention have significant advantages over prior art video interfacedevices such as DACs. In particular, the embodiments of the presentinvention provide for the difference between the clocking of video datafrom a video source, such as a video processor, to a video frame bufferand the clocking of the data to the display unit. Further, theembodiments of the present invention allow for scaling of pixel data bylinear interpolation. This novel feature provides the substantialadvantage of allowing scaling for .either odd or even numbers ofundefined pixels on a display screen.

The foregoing has outlined rather broadly the features and technicaladvantages of the present invention in order that the detaileddescription of the invention that follows may be better understood.Additional features and advantages of the invention will be describedhereinafter which form the subject of the claims of the invention. Itshould be appreciated by those skilled in the art that the conceptionand the specific embodiment disclosed may be readily utilized as a basisfor modifying or designing other structures for carrying out the samepurposes of the present invention. It should also be realized by thoseskilled in the art that such equivalent constructions do not depart fromthe spirit and scope of the invention as set forth in the appendedclaims.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention, and theadvantages thereof, reference is now made to the following descriptionstaken in conjunction with the accompanying drawings, in which:

FIG. 1 is a functional block diagram of a data processing systemembodying the principles of the present invention;

FIG. 2 is a more detailed functional block diagram of the displayinterface unit (DAC) depicted in FIG. 1;

FIG. 3 is an electrical schematic diagram of the input FIFO depicted inFIG. 2;

FIGS. 4a-4g are electrical schematic diagrams of the video alignerdepicted in FIG. 2;

FIGS. 5a-5d are electrical schematic diagrams of the chrominanceinterpolator depicted in FIG. 2;

FIGS. 6a, 6b1-6b3, 6c1-6c4, and 6d1-6d2 are electrical schematicdiagrams of the color space matrix depicted in FIG. 2;

FIGS. 7a, 7b1-7b2, 7c1-7c2, and 7d are electrical schematic diagrams ofthe zoom control circuitry shown in FIG. 2; and

FIG. 8 is an electrical schematic diagrams of the gamma corrector shownin FIG. 2.

DETAILED DESCRIPTION OF THE INVENTION

The principles of the present invention and their advantages are bestunderstood by referring to the illustrated embodiment depicted in FIGS.1-8 of the drawings, in which like numbers designate like parts.

FIG. 1 is a functional block diagram of a data processing system 10operable to process and display both graphics and video data. In theillustrated embodiment, the video data processing path includes a videoprocessor 101 which receives and processes digitized NTSC video receivedfrom an NTSC video source 102. Video processor 101 may be for example aPixel Semiconductor CL-PX2070 digital video processor, a completedescription of which may be found in "Preliminary Data Sheet CL-PX2070Digital Video Processor", October 1992, available from PixelSemiconductor, Dallas, Tex., such data sheet being incorporated hereinby reference. Video processor 101 operates in conjunction with a videomemory or frame buffer 104. In the illustrated embodiment, video memory104 consists of one or more video random access memory devices (VRAMs).Video processor 101 and video memory 104 are in turn coupled to amultiple source, digital to analog video converter (DAC) 20 whichprovides the requisite interface with the system display unit 107. DAC20, which embodies the principles of the present invention, is discussedin further detail below. Display unit 107 may be for example a rasterscan display system operable to display frames of images as fields oflines of pixels, each pixel being defined in color by analog RGB datareceived from DAC 20.

System 10 also includes a graphics data control path having a graphicscontroller, such as the depicted VGA controller 103, and a graphicsmemory or frame buffer 105. Graphics memory 105 may be constructed fromone or more video random access memory (VRAM) devices. Graphics dataprocessed through VGA controller 103 and graphics memory 105 areinterfaced to display unit 107 through DAC 20.

System (host) processor 106 provides overall control of processingsystem 10. System processor 106 communicates with DAC 20, graphicsprocessor 103 and video processor via bus 108, which may be for examplean ISA bus or an MCA bus.

Video processor 101 and video memory 104 provide video data in any oneof a number of YUV and RGB formats to the video processing circuitry 201of DAC 20. For example, the video data being processed may be 16-bit YUV(4:2:2), 16-bit RGB (5:6:5) or 24-bit RGB (8:8:8). This video data maybe tagged or untagged and in the 16-bit modes a pair of pixels may betransferred as a 32-bit word. Video processor 101 loads data into videomemory 104 via the VRAM random access port. The zoom codes (controlcodes) associated with each video data word are delivered to DAC 20directly with the VCLK. The attachment and timing of the pixel data(video data words) is fully described in copending and coassigned U.S.patent application Ser. No. 08/099,223 incorporated herein by reference.Video serial data (VSD) and zoom codes are provided in raster scanformat to video processing circuitry 201. Video processor 101 provides avideo clock (VCLK) to video processing circuitry to time the transfer ofvideo data from the video memory 104 into the front end first-infirst-out memory of video processing circuitry 201 (discussed furtherbelow). In the illustrated embodiment, the video clock is not afree-running clock, as controlled by video processor, and the videowrite enable signal (VWE) is tied high. In alternate embodiments, theVCLK may be free running and thus a VWE signal may be required.

VGA controller 103 loads graphics memory (frame buffer) 105 withgraphics data which in turn is serially provided to graphics processingcircuitry 202 of DAC 20. VGA controller 103 also provides either one oftwo pixel clocks (PCLK0 or PCLK1) and a latching clock (LCLK) for timingthe transfer of graphics data from frame buffer 105 to DAC 20. Asdiscussed further below, the pixel clock and its derivatives alsocontrol the pipelining of video data through video processing circuitry201. VGA controller 103 also provides the horizontal sync pulse (HSYNC),the vertical sync pulse (VSYNC), and a display blanking pulse (BLANK)for driving a raster scan display 107. For a complete description of thegraphics processing circuitry 202 and the requisite control and clocksignals, reference is now made to "Preliminary Data Sheet CL-PX2080MediaDAC", December 1992, available from Pixel Semiconductor, Inc.,Dallas, Tex., such data sheet being incorporated herein by reference.Graphics processing circuitry 202 will also be generally discussedbelow.

System processor 106 communicates via bus 108 to processor interface203. Also as discussed in further detail in the CL-PX2080 data sheet,the processor interface 203 advantageously allows communication witheither an ISA bus, MSC bus, or the host processor's local bus, or acoprocessor.

DAC 20 also includes a border/cursor generation circuitry 204 whichprovides a border around the display screen of display unit 107 whendesired and a cursor, also on the screen of display 107, as located bythe user. A mixer 205 controls the flow and display of either video datafrom video processing circuitry 201, graphics, data from graphicsprocessing circuitry 202 or cursor and/or border data from border/cursorgeneration circuitry 204. For a complete description of the cursorgeneration function, reference is now made to co-pending and co-assignedU.S. patent application Ser. No. 08/098,844, entitled Apparatus, Systemsand Methods For Displaying A Cursor On a Display Screen, and filed Jul.29, 1993, incorporated herein by reference. For a more completedescription of mixing (multiplexing) circuitry 205 reference is made toco-pending and co-assigned U.S. patent application Ser. No. 08/098,846,entitled A System and Method for the Mixing of Graphics and VideoSignals and filed Jul. 29, 1993, incorporated herein by reference. DAC20 further includes circuitry 206 for aligning the horizontal andvertical synchronization signals prior to their provision to display107, digital to analog converters 207 which in the illustratedembodiment convert digital RGB data into analog RGB data for drivingdisplay 107, and comparison circuitry 208 which provides a sense signalto display unit 107 from digital to analog converters 207 based on areference signal (VREF).

FIG. 2 is a more complete functional block diagram of DAC 20. Videoprocessing circuitry, embodying the concepts of the present invention,includes input FIFO 30, format aligner 40, chrominance interpolator 50,color space matrix 60, zoom control 70, and gamma corrector 80. Each ofthese functional blocks of video processing circuitry 201 will bedescribed in further detail below.

Graphics processing circuitry 202 includes an interface 210 forreceiving up to 32-bits of graphics data from graphics frame buffer 105,8-bits of VGA data and the graphic control signals and clocks previouslydescribed in connection with FIG. 1. Graphics processing circuitry 202further includes a time multiplexing circuitry 211 which receives up to32-bits of graphics data from the interface 210 and controls and timesthe selection from each 32-bit word of graphics data received of eitherone 24-bit pixel, two 16-bit pixels, four 8-bit pixels, or eight 4-bitpixels. The output of time multiplexer 211 is presented to multiplexer212 for either addressing the color look-up table 213 (color paletteRAM) or graphics chroma keyer 214. The single 24-bit pixel or the two16-bit pixels output from time multiplexer 211 may be provided as truecolor data through multiplexer 215 thereby bypassing color look-up table213.

Graphics processing circuitry 202 also includes clock sync circuitry 216which receives up to two pixel clocks (PCLK) and a latch clock (LCLK)and outputs a shift clock to the VRAMs graphics memory 105 and/orgraphics controller 103. The graphics shift clock (SCLK) is a dividedown of the pixel clock and depends on the operating mode (i.e., thenumber of bits per pixel/number of pixels being processed for each32-bit word received from either memory 104 or memory 105).

Processor interface 203 includes interface hardware 217, controlregisters 218 and data registers 220. ISA/MCA/local hardware interface217 receives address data, read/write enable signals, and controlsignals for controlling the transfer of data to and from controlregisters 218 by system processor 106. Each control register receivescontrol bits from system processor 106 via the data bus portion of bus108. The bits stored in control registers 218 control the operation ofDAC 20, as selected by the user through the host processor 106. Colordata words are received through registers 220 and are used to load thegamma corrector RAM (discussed further below), the color look-up tableRAM 213 and the RAMs and registers of cursor/border generation circuitry204 used to store pattern color data for the display of a cursor and aborder patterns.

In the illustrated embodiment, border/cursor generation circuitry 204includes a 32×32×2 random access memory (as discussed below, this RAMmay be of an alternate size and/or configuration) which holds aplurality of pairs of bits each used to select color data stored in four24-bit registers 222 defining the boundaries and colors of the cursorand/or border as desired by the user. Cursor control circuitry 223controls the location of the cursor on the screen of display system 107.

FIG. 3 is a schematic diagram of input FIFO 30 depicted in FIG. 2. InputFIFO 30 includes a first in/first out (FIFO) memory 301. In theillustrated embodiment, FIFO 301 is arranged in a 256×36 organization(i.e., 36 planes of 256 bit locations each). This allows 32-bits ofvideo serial data (VSDI) from video memory 104 to be stored along withan associated 4-bits of zoom codes (ZCI) (received directly from videoprocessor 101) at the same location. Writes into FIFO 301 are enabled bythe video write enable signal. (VWE) received from video processor 101,with the data clocked in by the video clock (VCLK), also received fromvideo processor 101. In the illustrated embodiment, data is written witheach rising edge of the VCLK (VWE is always active or high). Writeaddresses for the data input from video memory 104 are generated by awrite counter 302. Write counter 302 resets with each VSYNC pulseindicating the start of each new field of video data, or with a generalhardware reset signal (RESET). Counter 302 is clocked by the video clock(VCLK).

Reads from the locations in FIFO 301 each retrieve 36-bits, 32-bitsbeing video data and 4-bits being the associated zoom codes. Reads areenabled by the signal start which indicates that data is being processedfor generation of a pixel within the active window of the display screenon display unit 107. A description of the active window as it relates tothe display blanking signal and border can be found in the CL-PX2080data sheets. The display screen is active when the display blankingsignal (Blank) is inactive; the active video window of display screenoccurs when the control signal BORDER* is inactive (i.e., within aborder around the periphery of the screen, if such a border is beinggenerated). Reads from the FIFO 301 are clocked by the read clock (RCLK)the period of which is equivalent to the pixel clock (PCLK) divided bytwo when the incoming 32-bit video data words include two pixels (i.e.,16-bit pixels) and equivalent to the PCLK when each incoming wordincludes only on pixel (i.e., a 24-bit pixel). A counter 303 providesaddresses to the read address input of FIFO 301. Counter 303, similar tocounter 302, is reset with either the hardware reset signal (RESET) orthe display vertical sync pulse. Read counter 303 is enabled during thescreen active window by the start signal and clocked by the read clock.The Q output (8-bits) from counter 303 provide the addresses to FIFO301.

As each write address is generated by write address counter 302, it isstored in a latch 304. Latching during normal operation is performedwith the low (inactive periods) of the VCLK. On the next cycle of theread clock (RCLK), the read count held in latch 304 is clocked throughan array of flip-flops 305 to one input of adder 306. At the same time,the 8-bits at the Q bar output of read counter 303 is provided at theother input to adder 306. The addition of the inverse of the read countfrom counter 303 and the write count clocked out of latch 304 are added,to effect a subtraction with the result provided to decode circuitry307. In the illustrated embodiment, decoder 307 determines when thewrite address count less the read address count exceeds 240, at whichtime the signal FIFOFULL* is generated. Control signal FIFOFULL* is ahandshake command which indicates, to a video processor 101 such as aPixel Semiconductor CL-PX2070, that data is being read out of the FIFO301 at a slower rate than it is being written in and therefore the FIFO301 is filling. As a consequence of the generation of FIFOFULL*, videoprocessor 101 can slow down or halt the generation and transfer of videodata to the video frame buffer 104.

Flip flop 308 and multiplexers 309 and 310 are primarily used to outputthe 32-bits of video data (VSDO) and 4-bits of zoom codes (ZC0) duringthe active window of the display screen. Before the start of display ofthe next field, 00000000h (black) is fed into chroma interpolator 50when RGB data is being passed. When YUV data is being passed 008080H isfed to chroma interpolator 50 such that chroma interpolator 50 sees"black-YUV" for interpolation.

FIGS. 4a-d are schematic diagrams of video aligner 40. Video (format)aligner 40 of the illustrated embodiment accepts 32-bits of data(VSD[31:0]) in any one of the various formats described in Table I,along with the associated 4-bits of zoom codes (ZC[3:0]). Format aligner40 uses a series of pipeline registers 401-406 and multiplexers 407-415to reformat the input data (VSD[31:0]) to provide two parallel 24-bitpixels (a total of 48 bits) to chrominance interpolator 50. Formataligner operates under the control of control circuitry 416 which isshown in detail in FIG. 4g. Control circuitry 416 operates on eightvideo format control bits (VFC[7:0]) which are taken from the videosetup register of control registers 218 (FIG. 2). Clocking is performedby clock CLK which may be either equivalent to the pixel clock or adivide by two of the pixel clock, as discussed below.

As is indicated in Table I, each incoming 32-bit data word (VSD[31:0])may include either one pixel of more than 16-bits (typically 24 bits) ortwo packed pixels of 16-bits or less each. In the single pixel mode,such as when 24-bit pixels are being received at input VSD[31:0], two32-bit words, which are received in serial from video memory 104, areused to provide two 24-bit pixels, (pixel 1 and pixel 2) for output tochroma interpolator 50. It is important to note that in this "singlepixel mode," the controlling clock (CLK) is equivalent to the pixelclock (PCLK). In the double pixel mode, such as when each 32-bit inputword is packed with two 16-bit pixels of either YUV or RGB data, the two24-bit pixels (pixel 1 and pixel 2) provided at the aligner outputs aregenerated by reformatting the single 32-bit input word. In this case,the controlling clock (CLK) is a divide by two of the pixel clock(PCLK).

It should be noted that in Table 1, the notation is based on alignmentto resultant 8-bit pixel values, where bit 7 is the MSB. For example, inTable 1, if R-7, R-6, R-5, and R-4 are specified, then data isleft-justified out of the pipeline with the three LSBs padded withzeros. Similarly, if two 16-bit RGB words are received, the LSBs foreach red, blue and green are padded by zeros to provide two 24-bitpixels of 8:8:8 formatting. Also, when y0 and y1 are specified in thesame input frame, y0 is the first luminance component in time.

In FIG. 4a it should be recognized that each set of registers 401-406 isfabricated from a plurality of flip flops or latches. Thus, each blockin a given register represents a number of flip flops. For example, theblocks representing the latches in registers 401-406 in the zoom codepipeline, such as block 402a, each represent four parallel flip flops orlatches since four zoom code bits (ZC[3:0]) are being processed.Similarly, in the pipeline register passing video data, such as the pathcontrolling the 8-bits (VSD[31:24]), each flip flop or latch block suchas block 402b, represents eight parallel flip flops or latches sinceeach parallel data path (VSD[31:24]), (VSD[23:16]), (VSD[15:8]), or(VSD[7:0]) handles 8-bits in parallel.

The outputs of video format aligner which couple to chromainterpolator50 can be described as follows. Output Y₋₋ R[15:0] outputs the fifteenoutput bits for two pixels (8-bits each) of either luminance (Y) or red(R) RGB data depending on whether YUV or RGB data was received from FIFO30. U0₋₋ G0[7:0] are the 8-bits of pixel 1 of either chrominance (U) orgreen (G) RGB data. Output V0₋₋ B0[7:0] are 8-bits of either chrominance(V) or blue (B) RGB data for pixel 1. Output G1[7:0] represents 7-bitsof green (G) RGB data for pixel 2 and output B1[7:0] represents the8-bits of blue (B) RGB data for pixel 2. It should be noted that byconvention the chroma components U1 and V1 (for pixel 2) are notprovided but are generated in the chroma interpolator 50. When a YUVdata is being output, the bits provided at outputs G1[7:0] and B1[7:0]are "don't cares."

FIGS. 5a-5d are schematic diagrams of chrominance interpolator 50. Asdiscussed briefly above, for each pair of YUV pixels Y₀ U₀ V₀ and Y₁ U₁P₁, the V1 and U1 chrominance components of the second pixel are notprovided by convention. Thus, a chrominance interpolator 50 such as thatdepicted in FIG. 5d is required. In essence, chromainterpolator 50 takesdata from a series of pixels before and after the current pixel to becompleted by interpolation.

Chroma interpolator 50 includes two filter/interpolator circuits 501 and502 for generating the missing U₁ and V₁ components from a given pixelpair when operating on YUV data. Timing through chroma interpolator 50is maintained by a series of pipelined registers 503-509. The clockingthrough pipeline registers 503-509 is maintained by corresponding clockdrivers 510-514. The controlling clock (CLKX2) is a divide by two ofclock (CLK) discussed above. Decode circuitry 515 receives eight videoformat control bits (VFC) from the video setup control register ofcontrol registers 218 (FIG. 2). From the eight video format controlbits, decoder 515 configures chroma interpolator 50 to process eitherRGB data or YUV data.

In the case of RGB data, the data is pipelined directly through chromainterpolator 50 without change, as are the tag data (TAGI) and zoomcodes (ZC). The red data received at inputs YI₋₋ R[15:0] is sentdirectly to output YR[15:0] through pipeline registers 503, 504, 505,508 and 509. The green and blue data received at inputs V1₋₋ B0[7:0] andU1₋₋ G0[7:0] are passed directly to outputs V₋₋ B[15:0] and U₋₋ G[15:0]respectively through two latch delays in register 503, two latch delaysin register 504 and one latch delay in register 509. Blue data receivedat input B1[7:0] is passed through to output V₋₋ B[15:0] via multiplexer516, one latch delay in register 504, multiplexer 517, multiplexer 518,two clock delays in register 505, multiplexer 519, one clock delay inregister 508, one clock delay in register 509 and multiplexer 520.Similarly, green data received at input G1[7:0] is passed unchanged tooutput U₋₋ G[15:0] via multiplexer 521, one clock delay in register 504,multiplexer 522, multiplexer 523, two clock delays in register 505,multiplexer 524, one clock delay each in registers 508 and 509, andmultiplexer 525.

When YUV data is being processed, the Y data received at input YI₋₋R[15:0] is passed directly to output Y₋₋ R[15:0] after five clock delays(when CLK equals PCLK/2 or 10 clock delays when CLK equals PCLK) throughregisters 503, 504, 505, 508 and 509. The U and V chrominance componentsfor pixel 1 (i.e., U₀ and V₀) passed directly to outputs V₋₋ B[7:0] andU₋₋ G[7:0] after two delays in register 503, two clock delays inregister 504 and one clock delay in register 509 (i.e., a total of fiveclock delays). The U and V components for pixel 2 (i.e., U1 and V1) tobe provided at outputs V₋₋ B[15:8] and U₋₋ G[15:8] are then provided byinterpolation/filter circuits 501 and 502. U and V are calculated inparallel to maintain high processing speeds (clock rates of 135 MHz andabove).

The primary components of interpolator circuit 501 (U₁ interpolation)include the latches of registers 504 and 503, a first series of adders526-528, a corresponding triplet of multipliers 529-531 and a three-wayadder 532. Similarly, interpolator circuitry 502 relies on the latchesof registers 503 and 504, three two-way adders 533-535, a correspondingtriplet of multipliers 536-538 and a three-way adder 539. Interpolatorcircuitry 501 further includes a pair of inverters 541 and 542 andinterpolator 502, a pair of corresponding inverters 543 and 544.

Interpolators 501 and 502 interpolate in accordance with the formula

    Z.sub.0 =2/128Z.sup.-5 -14/128Z.sup.-3 +76/128Z.sup.-1 +76/128Z.sup.+1 -14/128Z.sup.+3 +2/128Z.sup.+5

where:

Z₀ is the data being currently interpolated;

Z⁻¹, Z⁻³, Z⁻⁵ are data from odd data points prior in time; and

Z⁺¹, Z⁺³, Z⁺⁵ are data from odd data points subsequent in time.

In the illustrated embodiment where the components

    U.sub.1 =2/128U.sub.-4 -14/128U.sub.-2 +76/128U.sub.0 +76/128U.sub.2 -14/128U.sub.4 +2/128U.sub.6 ;

and

    V.sub.1 =2/128V.sub.-4 -14/128V.sub.-2 +76/128V.sub.0 +76/128V.sub.2 -14/128V.sub.4 +2/128V.sub.6 ;

FIG. 6a is a top level functional block diagram of color space matrix60. In general, color space matrix accepts input from the chrominanceinterpolator 50, when YUV pixel data is provided, converts the YUVpixels to RGB pixels. As with the previously described circuitry, colorspace matrix 60 operates on 48-bits of data representing two 24-bitpixels in an 8:8:8 format. Blue conversion circuits 601 and 602 providecolor conversion of the input YUV data to provide the blue components oftwo RGB pixels. Similarly, green conversion circuits 603 and 604respectfully convert the incoming YUV data into the green components fortwo RGB pixels while a red conversion circuits 605 and 606 convert theincoming YUV data into the red components of two RGB pixels. It shouldbe noted that when RGB data is pipelined into inputs Y₋₋ R, U₋₋ G andV₋₋ B, that no conversion is required and therefore the data is directlypassed without change from chrominance converter 50 to zoom controller70. The operation of converters 601-606 is controlled by five bits fromthe video setup register of control registers 218 (FIG. 2) as providedthrough clock drivers 607-608.

FIG. 6b is a more detailed electrical schematic of a selected one of theblue color converters 601 or 602. Blue color converters 601 and 602generate blue color data from YUV data in accordance with the formula:B=Y+443÷256•(V-128). Blue color converters 601 and 602 each include anarray of adders 609, a register 610 made up of a plurality of latches,an array 611 of flip flops, a second set of adders 612, an array ofmultiplexers 613 and a final set of flip flops 614. It should be notedthat the subtraction of 128 from the U and V signals is due to the colordifference signals being coded in excess 128 notation. The results arerounded to a bit with results less than zero set to zero and resultsgreater than 255 set to 255.

FIG. 6c is more detailed electrical schematic of a selected one of thegreen color conversion circuits 603 and 604. Green color conversion isaccomplished according to the formula:G=Y-179÷256•(V-128)-86÷256•(U-128). Green color converters 603 and 604each include an array of adders 615, a first array of flip flops 616, asecond array of flip flops or latches 618, a second array of adders 619,a series of multiplexers 620 and a final array of flip flops or latches621.

FIG. 6d is a more detailed schematic drawing of a selected one of thered color converters 605 and 606. Red color conversion is performed inaccordance with the formula: R=Y+351÷256•(V-128). Each red colorconversion circuits 605 and 606 include an array of adders 622, a firstarray of flip flops 623, second array of flip flops or latches 624, asecond array of adders 625, an array of multiplexers 626 and a final setof latches 627.

FIG. 7a is a top level functional block diagram of zoom control circuit70. Control circuitry 701 receives the 4-bits of zoom codes receivedwith each pair of pixels and generates control signals therefrom forcontrolling the zooming function described further below. ZTAG circuitry702 controls the zooming of the TAG information (TAG). This allowssmooth tagging of non-rectangular video windows (the tags are notinterpolated but are instead carried forward selectively from theprevious pixel). Zoom circuits 703, 704 and 705 respectively performzooming on the red, green, and blue pixel data (48-bits covering two24-bit words of RGB data) respectively. A timing is maintained by clocksCLK and CLKX2 previously described above.

The zoom function allows for the pairs of pixel color data words outputfrom color space matrix 60 to be used to display a larger number ofpixels on the screen of display unit 107. In other words, data isgenerated for a selected number of pixels along a given line (Xdirection) of the screen of display unit 107, with the color data for acorresponding number of intervening pixels along the lines being filledin by the zoom function. According to the illustrated embodiment of thepresent invention, linear interpolation is used to generate the pixeldata for the missing intervening pixels to be displayed using linearinterpolation as controlled by the zoom codes (Z_(c)). Zoom codedefinition is provided in Table 2. PIX_(n) and PIX_(n+1) correspond tothe first and second pixels (i.e., pixel 1 and pixel 2) of the currentpair being received by zoom control circuitry 70 from color space matrix60. Pixels PIX_(n+2) and PIX_(n+3) are the first and second pixels ofthe following pixel pair. The zoom code specified in Table II representsthe zoom code attached (associated with) the current pixel pair.

In accordance with Table II, the zoom codes are decoded by controlcircuitry 701 and linear interpolation performed by zoom circuits 703,704 and 705 for the received words of red, blue and green data,respectively. It should be noted that the zoom codes contain bothinterpolation data and timing data. Further, in the illustratedembodiment, the data received by DAC 20 may have been already "roughlyzoomed" by simple doubling pixels (x-direction expansion) and doublinglines (y-direction expansion) by controlled output (clocking) frommemory 107 by video processor 101. In this case, zoom control circuitryuses interpolation to provide a smoother zoom. For a further descriptionof the "rough zooming" from the video frame buffer, reference is nowmade to copending and coassigned U.S. patent application Ser. No.08/099,223 incorporated herein by reference. Zoom control circuitry 701provides substantial advantages. By receiving zoom codes directly fromprocessor 101 and data from memory 107 the bandwidth of frame buffer 107is substantially reduced. Further, the results of the interpolation areprovided at the output side of DAC 20.

FIG. 7b is a detailed schematic diagram of control circuitry 701.Circuitry 701 receives 4-bits of zoom code at input ZC[3:0] and outputssixteen control bits CTRL[15:0] in response. Control circuitry 701includes an array of inverters 706, an array of NAND gates 707 and anarray 708 of NAND gates and inverters. The 16-bits of control data areclocked out through flip flop 709. Flip flops 710 and 711 generatesignals LO and HI from the clock (CLK) and control signals WINODD.

Control signal WINODD informs zoom control circuitry 701 of the locationof the first pixel such that pixel timing is maintained for the LO/HIcircuitry. The LO-HI control bits allow the output of the correct pixelin time. In other words, when LO is active, Pixel 0 (the first pixel) isoutput and when HI is active, the second pixel (Pixel 1) is output.

A detailed electrical schematic diagram of a selected one of the zoomcircuits 703, 704 and 705 is shown in FIG. 7c. Each zoom circuit 703,704 and 705 includes an input pipeline register 712, a first set ofmultiplexers 713, 714, 715 and 716, inverters 717, a pair ofadder/divide by two circuits 718 and 719, a second pair of multiplexers720 and 721, registers 722, an output multiplexer 723 and a pair ofoutput pipeline registers 724 and 725. In accordance with the controlsignal CTRL[15:0] as decoded by control circuitry 701 from the zoomcodes, each circuit 703-705 performs the corresponding operation in therighthand column of Table 2 for the corresponding red, blue or greendata words.

Also in accordance with the zoom codes listed in Table 2, as decodedinto control signals CTRL by control circuitry 701, TAG zoomingcircuitry 702 ensures that the proper tags are attached (associatedwith) the newly generated pixel data. FIG. 7d is an electrical schematicdiagram of TAG zoom circuitry 702. TAG zoom circuitry 702 includes aninput register 726, input multiplexers 727 and 728, a pair of inverters729 and 730, a second set of multiplexers 731 and 732, pipeline register733, output multiplexer 735 and output register 736.

It should be noted that TAG is one method of determining whethergraphics or video data is being displayed. The TAG bits are received byzoom control circuitry 701 on a pixel by pixel basis from the sourceimage (memory 104). As discussed above, the TAGs in the illustratedembodiment are not interpolated but instead the adjacent pixel with theleast significant index is replicated.

Gamma correction circuitry 80 accepts input data from zoom controlcircuitry 70 and outputs RGB formatted video data to mixing circuitry205 (FIGS. 1 and 2). The gamma corrector circuitry utilizes three 256×8memories, one for each color channel. In a preferred embodiment, thethree 256×8 memories are incorporated along with the color look-up tablememory 213. The gamma corrector memory can be programmed with either acustom correction table or simply for removing the gamma coating that isnormally present in UYV video signals.

FIG. 8 is a functional block diagram depicting the look of table/gammacorrection memory 213 and associated addressing circuitry. In normaloperation, and when video data is being sent for display on display unit107, a selector 801 passes the video data to memory 213 and the gammacorrection table is accessed. The gamma corrected video data is thenoutput through register 802. The preferred embodiment of gamma corrector80 however also includes an optional feature in which the user canbypass the gamma correction table and fee data directly to video display107 without gamma correction. In this case, a bit (bit 4) in the videosetup register of control registers 218 is set and a signal A-8 providedto multiplexers 803 and 804. The 24-bits of video RGB data (VRGB) isthen passed by multiplexer 804 through register 805 directly to videodisplay 107.

Although the present invention and its advantages have been described indetail, it should be understood that various changes, substitutions andalterations can be made herein without departing from the spirit andscope of the invention as defined by the appended claims.

                                      TABLE I                                     __________________________________________________________________________    Input Data Formats To Format Aligner                                          Pixel Word                                                                          YUV 16-bit                                                                           YUV 16-bit                                                                           RGB 16-bit                                                                           RGB 16-bit                                                                           RGB 24-bit                                                                           RGB 24-bit                           VSD[31:0]                                                                           Non-Tagged                                                                           Tagged Non-Tagged                                                                           Tagged Non-Tagged                                                                           Tagged                               __________________________________________________________________________    VSD[31]                                                                             Y1-7   Y1-7   R1-7   TAG 1  X      TAG 0                                VSD[30]                                                                             Y1-6   Y1-6   R1-6   R1-7   X      X                                    VSD[29]                                                                             Y1-5   Y1-5   R1-5   R1-6   X      X                                    VSD[28]                                                                             Y1-4   Y1-4   R1-4   R1-5   X      X                                    VSD[27]                                                                             Y1-3   Y1-3   R1-3   R1-4   X      X                                    VSD[26]                                                                             Y1-2   Y1-2   G1-7   R1-3   X      X                                    VSD[25]                                                                             Y1-1   Y1-1   G1-6   G1-7   X      X                                    VSD[24]                                                                             Y1-0   Y1-0   G1-5   G1-6   X      X                                    VSD[23]                                                                             V0-7   V0-7   G1-4   G1-5   R0-7   R0-7                                 VSD[22]                                                                             V0-6   V0-6   G1-3   G1-4   R0-6   R0-6                                 VSD[21]                                                                             V0-5   V0-5   G1-2   G1-3   R0-5   R0-5                                 VSD[20]                                                                             V0-4   V0-4   B1-7   B1-7   R0-4   R0-4                                 VSD[19]                                                                             V0-3   V0-3   B1-6   B1-6   R0-3   R0-3                                 VSD[18]                                                                             V0-2   V0-2   B1-5   B1-5   R0-2   R0-2                                 VSD[17]                                                                             V0-1   V0-1   B1-4   B1-4   R0-1   R0-1                                 VSD[16]                                                                             V0-0   TAG 1  B1-3   B1-3   R0-0   R0-0                                 VSD[15]                                                                             Y0-7   Y0-7   R0-7   TAG 0  G0-7   G0-7                                 VSD[14]                                                                             Y0-6   Y0-6   R0-6   R0-7   G0-6   G0-6                                 VSD[13]                                                                             Y0-5   Y0-5   R0-5   R0-6   G0-5   G0-5                                 VSD[12]                                                                             Y0-4   Y0-4   R0-4   R0-5   G0-4   G0-4                                 VSD[11]                                                                             Y0-3   Y0-3   R0-3   R0-4   G0-3   G0-3                                 VSD[10]                                                                             Y0-2   Y0-2   G0-7   R0-3   G0-2   G0-2                                 VSD[9]                                                                              Y0-1   Y0-1   G0-6   G0-7   G0-1   G0-1                                 VSD[8]                                                                              Y0-0   Y0-0   G0-5   G0-6   G0-0   G0-0                                 VSD[7]                                                                              U0-7   U0-7   G0-4   G0-5   B0-7   B0-7                                 VSD[6]                                                                              U0-6   U0-6   G0-3   G0-4   B0-6   B0-6                                 VSD[5]                                                                              U0-5   U0-5   G1-2   G0-3   B0-5   B0-5                                 VSD[4]                                                                              U0-4   U0-4   B1-7   B0-7   B0-4   B0-4                                 VSD[3]                                                                              U0-3   U0-3   B1-6   B0-6   B0-3   B0-3                                 VSD[2]                                                                              U0-2   U0-2   B1-5   B0-5   B0-2   B0-2                                 VSD[1]                                                                              U0-1   U0-1   B1-4   B0-4   B0-1   B0-1                                 VSD[0]                                                                              U0-0   TAG 0  B1-3   B0-3   B0-0   B0-0                                 __________________________________________________________________________

                  TABLE II                                                        ______________________________________                                        ZOOM CODE DEFINITION                                                          ZOOM CODE    LINEAR INTERPOLATION CASE                                        ZC     ZC        Display       Display                                        <3:2>  <1:0>     Pixel 1 (P1)  Pixel 0 (P0)                                   ______________________________________                                        00     00        Pix.sub.n     Pix.sub.n                                      00     01        Not Used      Not Used                                       00     10        Pix.sub.n+2   Pix.sub.n+1                                    00     11        Pix.sub.n+2   (Pix.sub.n+1 + Pix.sub.n+2)/2                  01     00        (Pix.sub.n + Pix.sub.n+1)/2                                                                 Pix.sub.n                                      01     01        (Pix.sub.n + Pix.sub.n+1)/2                                                                 (Pix.sub.n + Pix.sub.n+1)/2                    01     10        Not Used      Not Used                                       01     11        (Pix.sub.n+2 + Pix.sub.n+3)/2                                                               (Pix.sub.n+1 + Pix.sub.n+2)/2                  10     00        Pix.sub.n+1   Pix.sub.n                                      10     01        Pix.sub.n+1   (Pix.sub.n + Pix.sub.n+1)/2                    10     10        Pix.sub.n+1   Pix.sub.n+1                                    10     11        Not Used      Not Used                                       11     00        Blank         Blank                                          11     01        (Pix.sub.n+1 + Pix.sub.n+2)/2                                                               (Pix.sub.n + Pix.sub.n+1)/2                    11     10        (Pix.sub.n+1 + Pix.sub.n+2)/2                                                               Pix.sub.n+1                                    11     11        (Pix.sub.n+1 + Pix.sub.n+2)/2                                                               (Pix.sub.n+1 + Pix.sub.n+2)/2                  ______________________________________                                    

What is claimed is:
 1. Video data processing circuitry comprising:amemory, for storing video data words and associated control codes, inputof said video data words synchronized to a first time base establishedby an associated video processor and output of said video data wordssynchronized with a second time base established by an associatedgraphics processor; format alignment circuitry coupled to said memoryand operable to receive a said video data words output from said memoryin a first format and align the said video data words into a secondformat; chrominance interpolator circuitry coupled to said formatalignment circuitry and operable to receive from said format alignmentcircuitry a said video data word in YUV format of a predetermined numberof bits and provide in response an interpolated YUV data word of agreater number of bits; a decoder operable to receive ones of said videodata words output from said chrominance interpolator circuitry in a YUVformat and output RGB color data words defining selected display pixelsin response; and a scaler operable to receive said RGB words output fromsaid decoder and said associated control codes and provide in responseRGB data words defining other display pixels.
 2. The processingcircuitry of claim 1 wherein said scaler comprises an x-scaler.
 3. Theprocessing circuitry of claim 1 wherein said first time base is based ona video clock received from said video processor.
 4. The processingcircuitry of claim 1 wherein said second time base is based on a pixelclock received from an external graphics processing source.
 5. Theprocessing circuitry of claim 1 wherein data flow through said decoderis synchronized with said second time base.
 6. The processing circuitryof claim 1 wherein data flow through said scaler is synchronized withsaid second time base.
 7. The processing circuitry of claim 1 whereindata flow through said format aligner is synchronized with said secondtime base.
 8. The processing circuitry of claim 1 wherein data flowthrough said chrominance interpolator circuitry is synchronized withsaid second time base.
 9. The processing circuitry of claim 1 whereinsaid scaler performs scaling using linear interpolation.
 10. A displaysystem comprising:a display operable to display images as fields of aplurality of pixels, the display of said pixels timed with a pixelclock; a graphics data source operable to generate graphics datadefining pixels in a said field; graphics processing circuitry operableto process said graphics data received from said graphics data sourceand provide in response signals for driving said display; a video datasource operable to generate video data defining pixels in a said fieldand a video clock; and an interface for interfacing said graphics datasource and said video data source to said display, comprising:a memoryoperable to store video data words received from said video memory, awrite of a said video data word into said memory clocked by said videoclock; video processing circuitry operable to process said video datareceived from said memory and provide signals for driving said displayin response, a read of a said video data word out of said memory,clocked by said pixel clock; and mixing circuitry for selecting betweensaid signals generated by said video processing circuitry and saidsignals generated by said graphics processing circuitry.
 11. The systemof claim 10 wherein said graphics data source is operable to generatesaid pixel clock.
 12. The device of claim 10 wherein said videoprocessing circuitry includes format alignment circuitry operable toreceive words of said video data coupled thereto from said memory in afirst bit format and output said ones of said video data words in asecond bit format.
 13. The device of claim 10 wherein said videoprocessing circuitry includes interpolation circuitry operable toreceive words of said video in a YUV format provide interpolated wordsof YUQ data in response.
 14. The device of claim 10 wherein said videoprocessing circuitry includes conversion circuitry operable to receivewords of said video data in a YUV format and convert said words to anRGB format.
 15. The device of claim 10 wherein words of said video datadefine selected pixels in a said field, said selected pixels spacedapart in said field by other ones of said pixels in said field, saidvideo processing circuitry further comprising scaling circuitry operableto receive said words video data defining said selected pixels andprovide in response data words defining said other ones of said pixels.